Crate smol_hyper
source ·Expand description
Implementation of hyper
’s runtime traits for smol
.
The goal of this crate is to allow for greater integration between hyper
and
smol
. It is deliberately constrained and implements the following:
- Implements
hyper::rt::Read
andhyper::rt::Write
forfutures_io::AsyncRead
andfutures_io::AsyncWrite
, respectively. - Implements
hyper::rt::Executor
onSmolExecutor
, which wraps around something that derefs tosmol::Executor
(&Executor
,Arc<Executor>
, etc). - Implements
hyper::rt::Timer
onSmolTimer
, which uses theasync_io::Timer
type to create timeouts.
This crate should allow for smol
’s type to be used in hyper
contexts.
Modules
- Integrations with the
hyper::rt
module.